<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c"       uri="http://java.sun.com/jsp/jstl/core" %>
Current user:&nbsp;<b>${account.acctName}</b>
<form name="myform" action="user.do?actionMethod=assign" method="post">
<input type="hidden" name="accountId" value="${account.id}">
<table width="100%" cellspacing="0" cellpadding="0" border="1">
<tr>
  	<td>
   	 请选择
    </td>
	<td width="30%" >
    <spring:message code="dutyForm.dutyName.displayname"/> </td>
    <td>
    <spring:message code="dutyForm.status.displayname"/>
    </td>
     <td>
    <spring:message code="dutyForm.describe.displayname"/>
    </td>

    <td>&nbsp;
    </td>
</tr>
<c:forEach var="duty" items="${dutyList}">
  	<tr>
  	<td>
  	  <input type="checkbox" value="${duty.id}" name="dutyId"
		   <c:forEach var="accountDuty" items="${account.fwAccountDuties}">
			   <c:if test="${accountDuty.fwDuty.id==duty.id}">
			   	checked
			   </c:if>
		   </c:forEach>
		   />
  	</td>
	    <td>
	    	${duty.name}
	    </td>
	   <td>
	    	${duty.status}
	   </td>
	   <td>
	    	${duty.describe}
	   </td>
  	</tr>
  </c:forEach>
</table>
</form>
